import React from 'react';
import { Input } from 'antd';
import styles from './serch.css'
const Search = Input.Search;

export default class Serch extends React.Component {
    render() {
        return (
            <div className={styles.Serch}>
                <Search placeholder="查找" 
                onSearch={value => this.props.subSerch(value)} 
                enterButton />
            </div>
        )
    }
}